package com.maimang.platform.dsp.enums;

/**
 * @author Rocky
 * @version 1.0.0
 * @classname LicenseType
 * @description <br>执照类型</br>
 * @date 2019-08-12 10:47
 * @email jintaozhao@qq.com
 */
public enum LicenseType {
	A(1, "企业营业执照统一信用代码"),
	B(2, "企业营业执照注册号"),
	C(3, "个体工商户营业执照统一信用代码"),
	D(4, "个体工商户营业执照注册号"),
	E(5, "事业单位法人登记证书编号"),
	F(6, "统一社会信用代码证书编号"),
	G(7, "民办非企业单位登记证书编号"),
	H(8, "组织机构代码证号"),
	I(9, "商业登记证号码"),
	J(10, "	香港公司注册证书编号"),
	K(11, "	律师事务所执业证书号"),
	L(12, "社会团体法人登记证书编号"),
	M(13, "	民办学校办学许可证号"),
	N(14, "外国(地区)企业常驻代表机构登记证号"),
	O(15, "其他编号"),
	P(116, "身份证号"),
	Q(117, "护照号"),
	R(118, "台湾居民往来大陆通行证号码"),
	S(119, "律师执业证书编号");

	private int index;
	private String name;

	LicenseType(int index, String name) {
		this.name = name;
		this.index = index;
	}

	// 普通方法
	public static String getName(int index) {
		for (LicenseType c : LicenseType.values()) {
			if (c.getIndex() == index) {
				return c.name;
			}
		}
		return null;
	}

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}}
